/**
 * 
 */
package com.nh.orderEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.nh.entity.BaseEntity;

/**
 * 项目名称：OrderingMiddleware
 * 
 * 类名称：UserEntity
 * 
 * 类描述：
 * 
 * 创建人：李兴建
 * 
 * E-mail:lxj08193@163.com
 * 
 * 创建时间：2013-1-15 下午09:18:54
 * 
 * 修改人：李兴建
 * 
 * 修改时间：2013-1-15 下午09:18:54
 * 
 * 修改备注：
 * 
 * @version
 */
@Entity
@Table(name = "T_OPERATOR")
public class UserEntity extends BaseEntity {
	private int uid;
	private String loginName;
	private String password;	
	private String name;

	/**
	 * @return the loginName
	 */
	@Column(name = "工号")
	public String getLoginName() {
		return loginName;
	}

	/**
	 * @return the uid
	 */
	@Id
	@Column(name = "I_ID")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "XNKY_BASE_IDENTITY")
	@SequenceGenerator(name = "XNKY_BASE_IDENTITY", initialValue = 1000000, allocationSize = 1)
	public int getUid() {
		return uid;
	}

	/**
	 * @param uid
	 *            the uid to set
	 */
	public void setUid(int uid) {
		this.uid = uid;
	}

	/**
	 * @param loginName
	 *            the loginName to set
	 */
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	/**
	 * @return the password
	 */
	@Column(name = "密码")
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the name
	 */
	@Column(name = "姓名")
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

}
